package user;

import book.BookList;
import operate.MyInterface;

public abstract class User {
    protected String name;
    public MyInterface[] myInterfaces; //定义一个数组，未指定大小
    public User(String name) {
        this.name = name;
    }
    public abstract int menu(); //写入menu方法没有意义，所以将其定义为抽象类，类中含有抽象类，那么该类需改为抽象类

    public void doMyInterface(int choice, BookList bookList){
        myInterfaces[choice].work(bookList);
    }

}
